package com.woniuxy02;


public class Test04 {

    public static void main(String[] args) {
        String s1="abc";
        String s2="abc";
        String s3="aBc";
        System.out.println(s1.equals(s2));
        System.out.println(s1.equals(s3));
        System.out.println(s1.equalsIgnoreCase(s3));

        String s4="abcdefg";
        String s5="cde";
        String s6="cdex";
        System.out.println(s4.contains(s5));
        System.out.println(s4.contains(s6));


        String str7="abcdefg";
        String str8="abc";
        String str9="bc";
        System.out.println(str7.startsWith(str8));
        System.out.println(str7.startsWith(str9));

        String str10="abcdefg";
        String str11="fg";
        String str12="mg";
        System.out.println(str10.endsWith(str11));
        System.out.println(str10.endsWith(str12));



    }
}
